﻿using SmartRFIDSystem.dao;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace RegisterForm
{
    public partial class Form1 : Form
    {

        //
        // 
        public Form1()
        {
            InitializeComponent();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void we(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {

        }

        private void label3_Click(object sender, EventArgs e)
        {

        }

        private void label3_Click_1(object sender, EventArgs e)
        {

        }

        private void button2_Click_1(object sender, EventArgs e)
        {
            RegisterForm form2 = new RegisterForm();
            form2.Show();
            //this.Hide();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            忘记密码 form2 = new 忘记密码();
            form2.Show();
            // this.Hide();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            UserDao user = new UserDao();
            if(user.login(UserName.Text, PassWord.Text, power.Text) == 1)
            {
                if (power.Text.Equals("管理员"))
                {
                    
                }
                else if(power.Text.Equals("个人用户"))
                {

                }
            }
            ;
        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {

        }
    }
}
